package com.wzh.frame.views;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by Hu on 2016/9/20.
 * <p>
 * <com.sphd.Restaurant.views.MarqueeTextView
 * android:id="@+id/address_tv"
 * android:layout_width="fill_parent"
 * android:layout_height="wrap_content"
 * android:ellipsize="marquee"
 * android:gravity="center_vertical"
 * android:marqueeRepeatLimit="marquee_forever"
 * android:padding="10dp"
 * android:singleLine="true"
 * android:text="暂无定位信息"
 * android:background="@color/white"
 * android:paddingLeft="10dp"/>
 */

public class MarqueeTextView extends TextView {
    public MarqueeTextView(Context context) {
        super(context);
    }

    public MarqueeTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MarqueeTextView(Context context, AttributeSet attrs,
                           int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean isFocused() {
        return true;
    }
}